🔁 Set Variable
The Set Variable action allows you to update the value of an existing variable within your Pageflows, enabling dynamic data manipulation.
Configuration
- Select Variable: Choose the variable you want to update from the list of previously created variables.
- Value: Assign a new value to the selected variable. You can:
- Enter a static value manually.
- Use dynamic expressions or formulas by clicking the function (
fx
) button to compute the value based on Pageflows data or logic.
Features
- Enables real-time updates to variables during Pageflows execution.
- Supports static values and dynamic expressions for flexible data assignment.
- Allows multiple variable updates within a single action.
- Helps control Pageflows state and data flow effectively.
Use Cases
- Update counters or flags based on conditional logic.
- Modify user input values after validation or transformation.
- Store intermediate results from calculations or API responses.
- Control flow execution by toggling boolean variables.
Notes
- Ensure the variable you want to update has been created beforehand.
- Validate dynamic expressions to prevent runtime errors.
- Use descriptive variable names for easier management and readability.
Tip: Combine Set Variable with conditions and loops to create powerful and adaptive Pageflows behaviors.